package cn.tedu.egmvc4.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Size;


@Data
public class UserAddParam {
    @Size(min=6,max=12,message="用户名长度必须在6-12之间")
    @ApiModelProperty(value="用户名",required = true)
    private String username;
    @ApiModelProperty(value="密码",required = true)
    private String password;
    @ApiModelProperty(value="昵称",required = true)
    private String nickname;
}
